package com.think.common.utils;

import java.util.Date;
import java.util.Random;

public class RandomUtils  {

	public static String getRandomString(String base,int length) {
		Random random = new Random(new Date().getTime());
		StringBuffer sBuffer = new StringBuffer();
		for (int i = 0; i < length; i++) {
			int number = random.nextInt(base.length());
			sBuffer.append(base.charAt(number));
			
		}
		return sBuffer.toString();
	}
}
